#!/usr/bin/node

const fs = require('fs'),
      src = process.argv[2];

let bool = fs.statSync(src).isDirectory();
if(bool){
  console.log('The command line parameter is an array, no operation');
  process.exit(1);
}
try{
  fs.unlinkSync(src)

}catch(e){
  console.error(e.message);
  process.exit(1);
}
